import $http from "./index"

interface loginData {
  username: string;
  password: string;
}

export const login = (data: loginData) =>
  $http({
    url: "/user/login",
    method: "post",
    data,
  });
